from django.http import HttpResponse


def index(request):
    return HttpResponse("Hello index")

def search_by(request,qtype,qstr):
    if "all" == qtype:return search_all(request,qstr)
    if "app" == qtype:return search_app(request,qstr)
    if "dev" == qtype:return search_dev(request,qstr)
    if "user" == qtype:return search_user(request,qstr)
    return HttpResponse("Hello index")

def search_all(request,qstr):
    return HttpResponse("Hello index %s"%(qstr))

def search_app(request,qstr):
    return HttpResponse("Hello index %s"%(qstr))

def search_dev(request,qstr):
    return HttpResponse("Hello index %s"%(qstr))

def search_user(request,qstr):
    return HttpResponse("Hello index %s"%(qstr))


